home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / GIFLIB12.ARJ / TEST-IBM.BAT < prev    next >
DOS Batch File  |  1991-08-05  |  3KB  |  97 lines

  1. @echo off
  2. rem
  3. rem Tests for the gif_lib utilities.
  4. rem Usage:
  5. rem    testgif [gif_dir] [display_prgm]
  6. rem
  7. rem   This test assumes the gif_lib utilities are available from one of the
  8. rem path directorys, and that DIR is set (directly or through command line)
  9. rem to the directory holf these gif files:
  10. rem 1. SOLID2.GIF
  11. rem 2. CHERYL.GIF
  12. rem 3. PORSCHE.GIF
  13. rem   In addition, set DISPLAY ( directly or through command line) to the
  14. rem program to display gif files in our system.
  15. rem   As this batch file intensively uses pipes which on msdos are saved as
  16. rem files on CURRENT disk, it is going to be a good idea to execute this batch
  17. rem from a ram disk.
  18.  
  19. set GIF_DIR=d:\c\gif\pic\
  20. if not x%1 == x set GIF_DIR = %1
  21.  
  22. rem
  23. rem Two display programs are available gif2herc for hercules monochrome device
  24. rem and gif2bgi for any device you have bgi driver for. See the docs for these
  25. rem programs for more.
  26. rem
  27. rem set GIF_DISPLAY=gif2herc
  28. set GIF_DISPLAY=gif2bgi -u c:\tc\bgi\ati\ati.2
  29. if not x%2 == x set GIF_DISPLAY = %2
  30.  
  31. @echo on
  32.  
  33. gifwedge | %GIF_DISPLAY%
  34.  
  35. gifbg -d tl -s 320 200 -c 255 255 255 -l 64 > bg1.gif
  36. gifcomb %GIF_DIR%porsche.gif bg1.gif | %GIF_DISPLAY%
  37. del bg1.gif
  38.  
  39. text2gif -f 1 -s 7 -c 0 255 0 -t "Created using the IRIT solid modeler, Gershon Elber 1990" > credit.gif
  40. gifasm %GIF_DIR%solid2.gif credit.gif | %GIF_DISPLAY%
  41. del credit.gif
  42.  
  43. gifhisto -t %GIF_DIR%cheryl.gif
  44. gifhisto -b -s 200 512 %GIF_DIR%cheryl.gif | gifflip -l | %GIF_DISPLAY%
  45.  
  46. gifflip -r %GIF_DIR%solid2.gif | gifrsize | %GIF_DISPLAY%
  47.  
  48. gifinter %GIF_DIR%cheryl.gif | gifflip -x | %GIF_DISPLAY%
  49.  
  50. gifbg -d "TL" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i   0   0 > b1.gif
  51. gifbg -d "BL" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i   0 175 > b2.gif
  52. gifbg -d "TR" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i 320   0 > b3.gif
  53. gifbg -d "BR" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i 320 175 > b4.gif
  54. gifasm b1.gif b2.gif b3.gif b4.gif > backgrnd.gif
  55. %GIF_DISPLAY% backgrnd.gif
  56. del b?.gif
  57. del backgrnd.gif
  58.  
  59. copy %GIF_DIR%solid2.gif s1.gif
  60. gifrsize s1.gif > s2.gif
  61. gifrsize s2.gif > s3.gif
  62. gifrsize s3.gif > s4.gif
  63. gifpos -i 320 0 s2.gif | gifinto s2.gif
  64. gifpos -i 480 0 s3.gif | gifinto s3.gif
  65. gifpos -i 560 0 s4.gif | gifinto s4.gif
  66. gifasm s1.gif s2.gif s3.gif s4.gif > sall.gif
  67. giftext sall.gif
  68. %GIF_DISPLAY% sall.gif
  69. gifrsize -s 0.45 sall.gif | %GIF_DISPLAY%
  70. del s?.gif
  71. del sall.gif
  72.  
  73. gifpos -s 720 348 -i 400 148 %GIF_DIR%porsche.gif | %GIF_DISPLAY%
  74.  
  75. gifrsize -S 300 600 %GIF_DIR%solid2.gif | %GIF_DISPLAY%
  76.  
  77. gifinter %GIF_DIR%cheryl.gif | gifrsize | %GIF_DISPLAY% -z 2
  78.  
  79. rem This is broken since it overflow the 128 chars limit:
  80. gifinter %GIF_DIR%cheryl.gif | gifclip -i 222 0 390 134 | gifpos -s 169 135 | gifrsize -s 2.0 > t.gif
  81. %GIF_DISPLAY% t.gif
  82. del t.gif
  83.  
  84. gifrotat -a 45 %GIF_DIR%cheryl.gif | %GIF_DISPLAY%
  85.  
  86. @echo off
  87.  
  88. rem Remove these variables from current shell
  89. Exit:
  90.  
  91. set GIF_DIR=
  92. set GIF_DISPLAY=
  93.  
  94.  
  95.  
  96.  
  97.